package controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class IndexController{
    private Logger logger = Logger.getLogger(IndexController.class);
    @RequestMapping("/index2")
    public String index(String username,Model model){
        System.out.println(username);
        model.addAttribute("username", username);
        return "index2";
    }

}
